package com.example.mobile_EnumMoudle;


public enum XModeState {
	Normal(0), Error(1), ReLoad(2), NoPermission(3);
	
	private int value;
	private XModeState(int value) {
		this.value = value;
	}
	public int getValue() {
		return value;
	}
	public static XModeState getEnumFromString(String string) {
		if (string != null) {
			return Enum.valueOf(XModeState.class, string.trim());
		}
		return null;
	}
}
